<#if  user?? && user.linkType?? && (user.linkType == "csgly" || user.linkType == "zzh") > <!--参赛管理  子账号-->
<#include "sshdXqListTemplate.html">
<#else>
	您没有权限查看该功能
</#if>
<#macro xmtopic>
${matchProject.matName!}
</#macro>
<#macro toolbarButton> 
<style>
.xm_button .el-button1{
	background-color: #00a3de;
}
.xm_button .el-button2{
	background-color: #0089de;
}
.xm_button .el-button3{
	background-color: #1c6dc9;
}
.xm_button img {margin-right: 6px;}
</style>
<#if user.linkType == "zzh"> <!-- 子账号-->
<#if isShowSumbitButton?? && isShowSumbitButton == "1">
<button  type="button" class="el-button3" onclick="submitMatchProArticle('csxmId')" ><span style="font-size: 16px;"><img src="static/cms/www/default/img/sshd/submit.png"/>提交参赛项目</span></button>
</#if>
</#if>
<button  type="button" class="el-button2" onclick="reflushWindow(true);"><span style="font-size: 16px;"><img src="static/cms/www/default/img/sshd/shuaxin.png"/>刷新</span></button>
<#if user.linkType == "zzh">
<button  type="button" onclick="showmxz()" class="el-button1"><span style="font-size: 16px;"><img src="static/cms/www/default/img/sshd/add.png"/>添加项目</span></button>
</#if>
</#macro>
<#macro toolbarSearch>
</#macro>
<#macro tableDataList>
  <tbody>
 <#if dataList??>
  <#list dataList as data>
    <tr>  
	    <td name="xmId" class="g_checkbox"><input name="csxmId" type="checkbox" value="${data.id!}"></input></td>
	    <td>${data.artName!}</td>
	    <td><@jmax.dc key="MATCH_ART_TYPE" code="${data.artType!}" /></td>
	    <td>${data.teamName!}</td> 
	    <td>${data.submitPerson!}</td>  
	    <td><@jmax.dc key="MATCH_SUBMIT_STATU" code="${(data.submitStatu)!}" />
	     </td>  
	    <td>${data.submitDate!}</td>  
	    <td><@jmax.dc key="MATCH_PROCESS_STATU" code="${data.processStatus!}" /></td>  
	    <td>
		<a onclick="editsshdzxqXM('${data.artType!}',${data.id!},'sshdCsXmShow')">[项目详情]</a>
	    <#if user.linkType == "zzh">
	    <#if !(data.publishStatu?? && data.publishStatu == "1")>
			<a onclick="editsshdzxqXM('${data.artType!}',${data.id!},'sshdCsXmAdd')">[编辑]</a>
		</#if>
		<#if !(data.submitStatu?? && data.submitStatu == "ytj")>
			<a onclick="delsshdxqXM(${data.id!})">[删除]</a>
		</#if>
		</#if>
		</td>  
	</tr>  
  </#list>
 </#if>
  </tbody>
</#macro>
<#macro contentListShow>
	<!--角色控制-->
	<#include "sshdXqTable.html">
	<@createTable styleClass='container1100' tabfields = ['项目名称','项目类型','团队名称','提交人','提交状态','提交时间','项目状态','操作'] isCheckBox=true  checkBoxName='csxmId' func=tableDataList  funcButton=buttonOprator1/>
	<div style="width: 100%; height: 50px;"></div>
	<#include "pager.html">
</#macro>
<#macro buttonOprator1>
</#macro>
<#macro buttonOprator>
    <#include "sshdCsXmModel.html"> 
	<@addXm/>
</#macro>
<#macro extendJs>
<script>
function delsshdxqXM(id) {
	$.confirm({
    title: '提示',
    content: '你确认要删除吗?',
    confirm: function(){
		$.ajax({
		     type: 'POST',
		     url: "matchProArticle.do?deleteMatchProArticleItems&matchProjectId=${(matchProject.id)!}",
		     dataType : 'json',  
		     data: {ids:id},
		     success: function(data) {
		         alertMessage(data,true,null);
	         },
     	    error:function(data,textstatus){
     	    	errorMessage();
           }  
		  });
    },
    cancel: function(){
    }
});
}
</script>
<#include "sshdXqXmJs.html"> 
<@sshdXqXmJs/>
</#macro>